package xyz.scootaloo.draft.textbook.chapter3;

/**
 * @author flutterdash@qq.com
 * @since 2021/5/31 12:57
 */
public class P7 {

    public static void main(String[] args) {
        float result = 0;
        for (int i = 1; i<5; i++) {
            result += 1 / (float) i;
        }
        System.out.println(result);
    }

}
